package com.maint.m.data.remote

import com.maint.m.OperationTicketResponse
import com.maint.m.PageRequest
import com.maint.m.TicketItem
import com.maint.m.data.model.TicketDetail
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.POST

interface TicketApiService {
    @POST("/api/ticket/page")
    fun getTicketPage(@Body request: PageRequest): Call<OperationTicketResponse>
    
    @POST("/api/ticket/detail")
    fun getTicketDetail(@Body request: TicketDetailRequest): Call<TicketDetailResponse>
}

// 仅保留必要的请求响应类，其他使用外部定义
class TicketDetailRequest(val id: String)

class TicketDetailResponse {
    val statusCode: String? = null
    val message: String? = null
    val result: TicketDetail? = null
}